package com.fjb.config.listener;

import org.apache.curator.framework.recipes.cache.NodeCache;
import org.apache.curator.framework.recipes.cache.NodeCacheListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Description:当前节点监听
 * @author hemiao
 * @time:2020年3月7日 下午4:32:26
 */
public abstract class AbstractNodeCacheListener implements NodeCacheListener{
	
	private static final Logger logger = LoggerFactory.getLogger(AbstractNodeCacheListener.class);
	 
    private NodeCache nodeCache;
 
    public AbstractNodeCacheListener(){
 
    }
 
    public AbstractNodeCacheListener(NodeCache nodeCache) {
        this.nodeCache = nodeCache;
    }
 
    public NodeCache getNodeCache() {
        return nodeCache;
    }
 
    public void setNodeCache(NodeCache nodeCache) {
        this.nodeCache = nodeCache;
    }
}
